package com.laf.sinaweibo.ui;


import android.app.Activity;
import android.app.Dialog;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.laf.sinaweibo.R;

public class AuthActivity extends Activity {

	private Dialog dialog;
	private Button button;
		
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		setContentView(R.layout.auth);
		
		View digView = View.inflate(this, R.layout.authorize_dialog, null);
		dialog = new Dialog(this, R.style.auth_dialog);
		dialog.setContentView(digView);
		dialog.show();
		
		button = (Button) digView.findViewById(R.id.btn_auto);

		button.setOnClickListener(new OnClickListener() {

			@Override

			public void onClick(View v) {

				Intent intent = new Intent(AuthActivity.this, WebViewActivity.class);

				startActivity(intent);
			}

		});

	}
}
